package com.lhz.common.constant.task;

import com.lhz.project.system.model.entity.task.Task;

import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

/**
 * @Author: LiHuaZhi
 * @Date: 2021/6/4 22:00
 * @Description:
 **/
public interface TaskRunnableConstant {

    /**
     * redis锁的key
     */
    String TASK_LOCK_KEY = "task_lock_key:";

    /**
     * 存入被执行的中的task实体 key:taskId,value:task对象
     */
    Map<String, Task> TASK_MAP = new ConcurrentHashMap<>();
}
